import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule, Http } from '@angular/http';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { WeUiModule } from 'ngx-weui';
import { ShudleService } from './service/shudleservice/shudle.service';
import { HttpService } from './service/http.service';
import { TimeService } from './service/timeservice/time.service';
import { WXService } from './service/WXService.service';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HosplistService } from './service/hosplist.service';
import { PhomepageComponent } from './phomepage/phomepage.component';
import { DoctorhomeComponent } from './doctorhome/doctorhome.component';
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
import { HttpClientModule } from "@angular/common/http";
import { NotfindComponent } from './notfind/notfind.component';
import { PayresultComponent } from './payresult/payresult.component';
import { BlankComponent } from './blank/blank.component';
import { AuthorizedloginComponent } from './authorizedlogin/authorizedlogin.component';
import { TiaozComponent } from './tiaoz/tiaoz.component';

@NgModule({
  declarations: [
    AppComponent,
    PhomepageComponent,
    DoctorhomeComponent,
    NotfindComponent,
    PayresultComponent,
    BlankComponent,
    AuthorizedloginComponent,
    TiaozComponent
  ],
  imports: [
    HttpClientModule,
    BrowserModule,
    AppRoutingModule,
    WeUiModule.forRoot(),
    BrowserAnimationsModule,
    FormsModule
  ],
  providers: [HosplistService, HttpService, ShudleService, TimeService, WXService, { provide: LocationStrategy, useClass: HashLocationStrategy }],
  bootstrap: [AppComponent]
})
export class AppModule { }
